package com.ymx.darling.exception;

/**
 * 异常的包装器 用来包装其他异常的异常
 * @author 爱Java的小于
 */
public class ExceptionWrapper extends DarlingException{
    private final Throwable throwable;

    public ExceptionWrapper(Throwable throwable, String errMsg) {
        super(throwable, errMsg);
        this.throwable = throwable;
    }

    public Throwable getThrowable() {
        return throwable;
    }
}
